﻿using my.abp.Domain.Shared.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Services;

namespace my.abp.Domain.IManagers.Role
{
	public interface ISysRoleManager : IDomainService
	{
		public Task<List<SysRole>> ListAsync(string Name, string Code, int pageNumber, int pageSize, RefAsync<int> total);
		public Task<ISugarQueryable<SysRole>> GetList();
		public Task AddRole(SysRole input, List<long> MenuIdList);
		public Task UpdateRole(SysRole input, List<long> MenuIdList);
		public Task DeleteRole(SysRole input);
		public Task GrantDataScope(long Id, int DataScope, List<long> OrgIdList);
		public Task<int> SetStatus(SysRole input);
	}
}
